package com.promote.hotspot.server.config;

import com.github.benmanes.caffeine.cache.Cache;
import com.promote.hotspot.server.cache.CaffeineBuilder;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Bean;

/**
 * 缓存配置
 *
 * @author enping.jep
 * @date 2024/01/17 15:23
 **/
@Configuration
public class CaffeineConfig {

    @Bean
    public Cache<String, Object> hotSpotCache() {
        return CaffeineBuilder.buildHotSpotCache();
    }
}
